import App from './App'
import Vue from 'vue'
import store from './store'

Vue.config.productionTip = false
App.mpType = 'app'

// 路由导航装饰器
import navigationDecorator from '@/utils/navigation-decorator.js'
navigationDecorator()

// UI 组件
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
uni.$u.config.unit = 'rpx'

// 过滤器
import * as filters from '@/filters/index.js'
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

// 微信jsapi工具类
import WxSdkUtil from '@/utils/wx-sdk-util.js'
Vue.prototype.$wxSdkUtil = new WxSdkUtil()

// 调试面板
// import VConsole from 'vconsole'
// const vConsole = new VConsole()

const app = new Vue({
	store,
  ...App
})
app.$mount()